[Master] Add DecodeRedirectUrisInResponse config key for DCR response#8175
[Master] Add DecodeRedirectUrisInResponse config key for DCR response#8175BimsaraBodaragama wants to merge 5 commits into
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThree configuration files are updated to introduce a new OAuth DCRM flag controlling redirect URI decoding in DCR responses. The feature defaults JSON adds ChangesDCRM Redirect URI Decode Configuration
Possibly related issues
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #8175 +/- ##
============================================
+ Coverage 52.77% 52.81% +0.03%
+ Complexity 21216 21178 -38
============================================
Files 2197 2197
Lines 130819 130615 -204
Branches 19654 19622 -32
============================================
- Hits 69040 68978 -62
+ Misses 53364 53241 -123
+ Partials 8415 8396 -19
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
PR builder started |
|
PR builder completed |
515523e to
56881a6
Compare
|
PR builder started |
|
PR builder completed |
|



Root Cause and Fix
GET/PUT /registerendpoints returnredirect_urisas a singleregexp=(...)string for apps with multiple redirect URIs. The config keyoauth.dcrm.decode_redirect_uris_in_responsewas missing from the CIF template and defaults.<DecodeRedirectUrisInResponse>toidentity.xml.j2unconditionally (matching the pattern of the neighbouring<ReturnNullFieldsInResponse>element)."oauth.dcrm.decode_redirect_uris_in_response": truetodefault.jsonso correct URI-array behaviour is the default on fresh installs."IS_7.3.0"block toinfer.jsonwith"oauth.dcrm.decode_redirect_uris_in_response": falseso deployments upgrading from IS 7.3.0 preserve the previous (legacy) response format rather than silently switching to the new default.Tracking
Fixes wso2/product-is#27851
Related PRs